package com.atguigu.guli.service.edu.feign;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.edu.feign.fallback.OssFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(value = "guli-oss",fallback = OssFeignClientFallback.class)
public interface OssFileService {
    @GetMapping("/admin/oss/test")
    R test();

    @DeleteMapping("/admin/oss/delete")
     R delete(@RequestParam("path") String path, @RequestParam("module") String module);
}
